package org.come.Jpanel;

import com.tool.btn.FormsOnOffBtn;

import java.awt.Component;
import java.awt.Graphics;
import java.awt.LayoutManager;
import javax.swing.ImageIcon;
import javax.swing.JPanel;

public class TtDhJpanel
        extends JPanel {
    public TtDhJpanel() {
        setBounds(176, 0, 588, 478);
        setOpaque(false);
        setLayout((LayoutManager) null);


        FormsOnOffBtn offBtn = new FormsOnOffBtn("inkImg/old/2/1.png", 1, 608);
        offBtn.setBounds(551, 10, 25, 25);
        add((Component) offBtn);
    }

    private ImageIcon icon = new ImageIcon("inkImg/old/background/S81.png");

    @Override
    protected void paintComponent(Graphics g) {
        super.paintComponent(g);
        g.drawImage(this.icon.getImage(), 0, 0, 588, 478, null);
    }
}


